import { ref } from 'vue'

// 处理密码框文本显示状态
export const useHandlePassWordEffect = () => {
  const passwordType = ref('password')
  const onChangePwdType = () => {
    if (passwordType.value === 'password') {
      passwordType.value = 'text'
    } else {
      passwordType.value = 'password'
    }
  }
  return { passwordType, onChangePwdType }
}
